//
//  CategoryCollectionReusableViews.m
//  Youhuiju
//
//  Created by yutenys on 16/7/29.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "CategoryCollectionReusableViews.h"

@implementation CategoryCollectionReusableViews
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        
        [self creatView];
    }
    return self;
}

-(void)creatView
{
    self.backgroundColor = [UIColor colorWithHexString:@"f5f5f5"];
    
    self.typeLabel = [[UILabel alloc]init];
    _typeLabel.font = [UIFont systemFontOfSize:12 * FitH];
    _typeLabel.textColor = [UIColor colorWithHexString:@"333333"];
    [self addSubview:_typeLabel];
    [_typeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).offset(5 * FitW);
        make.right.equalTo(self.mas_right);
        make.top.equalTo(self.mas_top).offset(10 * FitH);
        make.bottom.equalTo(self.mas_bottom);
    }];
}

@end
